<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>09_绝对定位</title>
  <style>
    .fu {
      background-color: #ff0;
      width: 500px;
      /*position:absolute;*/
      position:relative;
      /*position: fixed;*/
      /*position:sticky*/
      /*position: static; !*不管用*!*/
    }
    .fu>div{width:100px;height: 100px;}
    .z1 {
      background-color: #f00;
    }
    .z2 {
      background-color: #0f0;
      position:absolute;
      top:0;
      right:0;
    }
    .z3 {
      background-color: #00f;
    }
  </style>
</head>
<body>
<div class="fu">
    <div class="z1">1</div>
    <div class="z2">2</div>
    <div class="z3">3</div>
</div>

</body>
</html>